package com.facade;

import javax.xml.rpc.ServiceException;

import com.mangocity.airticket.b2b.webservice.FlightQueryService;
import com.mangocity.airticket.b2b.webservice.LowPriceService;
import com.mangocity.airticket.b2b.webservice.StopInfoQueryService;
import com.mangocity.airticket.jingdong.webservice.FlightQueryServiceImplServiceLocator;
import com.mangocity.airticket.jingdong.webservice.LowPriceServiceImplServiceLocator;
import com.mangocity.airticket.jingdong.webservice.StopInfoQueryServiceImplServiceLocator;

public class MangoFacadeServiceImpl implements MangoFacadeService {

	private FlightQueryServiceImplServiceLocator mangoFlightQueryService;
	private LowPriceServiceImplServiceLocator mangoLowPriceService;
	private StopInfoQueryServiceImplServiceLocator mangoStopInfoQueryService;

	@Override
	public LowPriceService getLowPriceService() throws ServiceException {
		return mangoLowPriceService.getLowPriceServiceImplPort();
	}
	
	@Override
	public FlightQueryService getFlightQueryService() throws ServiceException {
		return mangoFlightQueryService.getFlightQueryServiceImplPort();
	}

	@Override
	public StopInfoQueryService getStopInfoQueryService() throws ServiceException {
		return mangoStopInfoQueryService.getStopInfoQueryServiceImplPort();
	}

	public void setMangoFlightQueryService(
			FlightQueryServiceImplServiceLocator mangoFlightQueryService) {
		this.mangoFlightQueryService = mangoFlightQueryService;
	}

	public void setMangoLowPriceService(
			LowPriceServiceImplServiceLocator mangoLowPriceService) {
		this.mangoLowPriceService = mangoLowPriceService;
	}

	public void setMangoStopInfoQueryService(
			StopInfoQueryServiceImplServiceLocator mangoStopInfoQueryService) {
		this.mangoStopInfoQueryService = mangoStopInfoQueryService;
	}

}
